# routerboard: yes # model: RB4011iGS+ # serial-number: B8FE0B458250 # firmware-type: al2 # factory-firmware: 6.45.1 # current-firmware: 7.19.4 # upgrade-firmware: 7.19.4 # # channel: stable # installed-version: 7.19.4 # # Flags: U - UNDOABLE # Columns: ACTION, BY, POLICY, TIME # ACTION BY POLICY TIME # U script removed marcos write 2025-09-24 08:53:52 # U script removed marcos write 2025-09-24 08:53:49 # U changed script settings marcos write 2025-09-22 16:50:20 # U changed script settings marcos write 2025-09-13 17:33:49 # U changed script settings marcos write 2025-09-11 11:39:16 # U changed script settings marcos write 2025-09-05 15:03:36 # U script removed marcos write 2025-09-05 15:03:27 # U device changed marcos write 2025-08-28 09:46:39 # # 2025-10-01 06:18:10 by RouterOS 7.19.4 # software id = D84M-67VT # # model = RB4011iGS+ # serial number = B8FE0B458250 /interface bridge add dhcp-snooping=yes fast-forward=no igmp-snooping=yes igmp-version=3 mld-version=2 multicast-querier=yes name=bridge_LAN port-cost-mode=short add name=bridge_vlan99 port-cost-mode=short /interface ethernet set [ find default-name=ether1 ] comment="MGMT - UNTAGGED VLAN99" set [ find default-name=ether2 ] comment="Enlace RDM-2-FLB" set [ find default-name=ether5 ] comment="Benegas Betsabe Mariana : antes Bruno Cambiaghi - se mudo, dejo el cable por las dudas que vendamos a otro cliente" set [ find default-name=ether6 ] comment="Epoint1 - UP" set [ find default-name=ether7 ] comment="Sensor TP-LINK (OpenWrt)" set [ find default-name=ether8 ] comment="Servicio casa/negocio - Inquilino de Laime" set [ find default-name=ether9 ] comment="Servicio casa/negocio - Laime Noemi Isabel" set [ find default-name=ether10 ] comment="Servicio casa/negocio - Laime Oscar" set [ find default-name=sfp-sfpplus1 ] disabled=yes /interface vlan add interface=ether2 name=vlan90 vlan-id=90 add interface=ether2 name=vlan99 vlan-id=99 /interface list add name=MGMT /interface lte apn set [ find default=yes ] ip-type=ipv4 use-network-apn=no /ip smb users set [ find default=yes ] disabled=yes /port set 0 name=serial0 set 1 name=serial1 /snmp community add addresses=192.168.200.253/32,192.168.200.155/32 authentication-protocol=SHA1 encryption-protocol=AES name=pnet /system logging action set 3 remote=192.168.200.168 remote-log-format=syslog syslog-facility=local0 add disk-file-count=5 disk-file-name=Critical name=CriticalLogs target=disk add disk-file-count=5 disk-file-name=Error name=ErrorLogs target=disk add disk-file-count=5 disk-file-name=Info name=InfoLogs target=disk add disk-file-count=5 disk-file-name=Interfaces name=InterfacesLogs target=disk add disk-file-count=5 disk-file-name=Warning name=WarningLogs target=disk add name=DudeLogs remote=192.168.200.253 remote-log-format=syslog syslog-facility=local6 target=remote add name=GrafanaLogs remote=192.168.200.168 remote-port=1514 target=remote add name=GrafanaLogsInfo remote=192.168.200.168 remote-log-format=syslog remote-port=1514 src-address=10.99.0.71 syslog-facility=local7 target=remote add name=GrafanaLogsAlert remote=192.168.200.168 remote-log-format=syslog remote-port=1514 src-address=10.99.0.71 syslog-facility=local6 target=remote /user group add name=oxidized policy="ssh,read,!local,!telnet,!ftp,!reboot,!write,!policy,!test,!winbox,!password,!web,!sniff,!sensitive,!api,!romon,!rest-api" add name=dude policy="local,reboot,read,write,test,web,rest-api,!telnet,!ssh,!ftp,!policy,!winbox,!password,!sniff,!sensitive,!api,!romon" add name=pnet policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romon,rest-api" /interface bridge filter add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether6 out-bridge=bridge_LAN out-interface=ether7 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether6 out-bridge=bridge_LAN out-interface=ether8 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether6 out-bridge=bridge_LAN out-interface=ether9 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether6 out-bridge=bridge_LAN out-interface=ether10 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether7 out-bridge=bridge_LAN out-interface=ether6 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether7 out-bridge=bridge_LAN out-interface=ether8 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether7 out-bridge=bridge_LAN out-interface=ether9 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether7 out-bridge=bridge_LAN out-interface=ether10 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether8 out-bridge=bridge_LAN out-interface=ether6 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether8 out-bridge=bridge_LAN out-interface=ether7 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether8 out-bridge=bridge_LAN out-interface=ether9 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether8 out-bridge=bridge_LAN out-interface=ether10 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether9 out-bridge=bridge_LAN out-interface=ether6 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether9 out-bridge=bridge_LAN out-interface=ether7 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether9 out-bridge=bridge_LAN out-interface=ether8 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether9 out-bridge=bridge_LAN out-interface=ether10 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether10 out-bridge=bridge_LAN out-interface=ether6 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether10 out-bridge=bridge_LAN out-interface=ether7 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether10 out-bridge=bridge_LAN out-interface=ether8 add action=drop chain=forward in-bridge=bridge_LAN in-interface=ether10 out-bridge=bridge_LAN out-interface=ether9 /interface bridge port add bridge=bridge_LAN ingress-filtering=no interface=ether6 internal-path-cost=10 path-cost=10 add bridge=bridge_LAN ingress-filtering=no interface=ether7 internal-path-cost=10 path-cost=10 add bridge=bridge_LAN ingress-filtering=no interface=ether8 internal-path-cost=10 path-cost=10 add bridge=bridge_LAN ingress-filtering=no interface=ether9 internal-path-cost=10 path-cost=10 add bridge=bridge_LAN ingress-filtering=no interface=ether10 internal-path-cost=10 path-cost=10 add bridge=bridge_vlan99 ingress-filtering=no interface=vlan99 internal-path-cost=10 path-cost=10 add bridge=bridge_LAN ingress-filtering=no interface=ether5 internal-path-cost=10 path-cost=10 add bridge=bridge_vlan99 interface=ether1 internal-path-cost=10 path-cost=10 add bridge=*14 interface=*12 add bridge=*14 interface=*13 /ip neighbor discovery-settings set discover-interface-list=MGMT /interface list member add interface=ether7 list=MGMT add interface=bridge_vlan99 list=MGMT /interface ovpn-server server add auth=sha1,md5 mac-address=FE:E8:99:29:76:A7 name=ovpn-server1 /ip address add address=172.22.10.1/24 interface=bridge_LAN network=172.22.10.0 add address=10.10.0.142/29 interface=vlan90 network=10.10.0.136 add address=192.168.10.2/30 interface=lo network=192.168.10.0 add address=10.99.0.71/24 comment=MGMT interface=bridge_vlan99 network=10.99.0.0 /ip dhcp-relay add dhcp-server=10.10.0.137 disabled=no interface=bridge_LAN local-address=172.22.10.1 name=Relay_RDM /ip dns set servers=8.8.8.8,1.1.1.1 /ip firewall address-list add address=172.22.0.0/24 comment=R60 list=nodos-privadas add address=172.22.1.0/24 comment=MEC-CMP list=nodos-privadas add address=172.22.2.0/23 comment=FLB list=nodos-privadas add address=172.22.4.0/24 comment=SR list=nodos-privadas add address=172.22.5.0/24 comment=BRS list=nodos-privadas add address=172.22.6.0/23 comment=SB list=nodos-privadas add address=172.22.8.0/23 comment=R50 list=nodos-privadas add address=172.22.11.0/24 comment=FO list=nodos-privadas add address=172.22.12.0/24 comment=PDG list=nodos-privadas add address=172.22.13.0/24 comment=3RA list=nodos-privadas add address=172.22.14.0/24 comment=BNT list=nodos-privadas add address=172.22.15.0/24 comment=JDN list=nodos-privadas add address=172.22.16.0/24 comment=MLK list=nodos-privadas add address=172.22.17.0/24 comment=VQZ list=nodos-privadas add address=172.22.18.0/24 comment=CBL list=nodos-privadas add address=172.16.6.0/23 comment=GPON_FLB list=nodos-privadas add address=172.16.4.0/23 comment=GPON_FO list=nodos-privadas add address=172.16.2.0/23 comment=GPON_R50 list=nodos-privadas add address=172.16.0.0/23 comment=GPON_SB list=nodos-privadas /ip firewall filter add action=fasttrack-connection chain=forward comment="default configuration" connection-state=established,related hw-offload=yes add action=accept chain=forward comment="accept established and related connections" connection-state=established,related add action=accept chain=input comment="Allow Established/Related/Untracked connections" connection-state=established,related,untracked add action=drop chain=input comment="Drop invalid connections" connection-state=invalid add action=accept chain=input comment="Allow ICMP" protocol=icmp add action=accept chain=input comment="Allow UDP" protocol=udp add action=accept chain=input comment=Oxidized dst-port=22 in-interface=bridge_vlan99 protocol=tcp add action=accept chain=input comment=Winbox dst-port=3380,8240,8291 protocol=tcp add action=accept chain=input comment="Bandwidth Test" dst-port=2000 protocol=tcp add action=jump chain=input comment="synflood policy3" disabled=yes jump-target=syn-flood protocol=tcp tcp-flags=syn add action=accept chain=syn-flood disabled=yes limit=100,5:packet add action=drop chain=syn-flood disabled=yes add action=log chain=input comment="Log everything else" disabled=yes log-prefix="DROP INPUT" add action=drop chain=input comment="Drop everything else" add action=drop chain=forward comment="Drop para trafico dirigido a las redes PRIVADAS de los NODOS (Address Lists)" dst-address-list=nodos-privadas src-address=172.22.10.0/24 add action=drop chain=virus comment="Drop Spammer" dst-port=25 protocol=tcp src-address-list=spammer add action=add-src-to-address-list address-list=spammer address-list-timeout=12w6d chain=virus comment="add to spammer list" connection-limit=30,32 dst-port=25 limit=50,5:packet protocol=tcp add action=jump chain=forward comment="jump to the virus chain" jump-target=virus add action=jump chain=forward comment="SYN Flood protect" connection-state=new jump-target=SYN-Protect protocol=tcp tcp-flags=syn add action=accept chain=SYN-Protect connection-state=new limit=400,5:packet protocol=tcp tcp-flags=syn add action=drop chain=SYN-Protect connection-state=new protocol=tcp tcp-flags=syn /ip firewall raw add action=drop chain=prerouting comment="BCP38 - RDM" in-interface=bridge_LAN src-address=!172.22.10.0/24 /ip firewall service-port set ftp disabled=yes set tftp disabled=yes set h323 disabled=yes set sip disabled=yes set pptp disabled=yes set udplite disabled=yes set dccp disabled=yes set sctp disabled=yes /ip ipsec profile set [ find default=yes ] dpd-interval=2m dpd-maximum-failures=5 /ip route add disabled=no distance=10 dst-address=0.0.0.0/0 gateway=10.10.0.137 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10 add comment=RED_VPN disabled=no dst-address=10.100.0.0/24 gateway=10.99.0.1 routing-table=main suppress-hw-offload=no add comment="Red NOC" disabled=no dst-address=192.168.200.0/24 gateway=10.99.0.1 routing-table=main suppress-hw-offload=no add comment=RED_VPN-WireGuard disabled=no dst-address=10.100.2.0/24 gateway=10.99.0.1 routing-table=main suppress-hw-offload=no /ip service set ftp disabled=yes set ssh address=192.168.200.155/32 set telnet disabled=yes set www port=8010 set api disabled=yes set api-ssl disabled=yes /ip smb shares set [ find default=yes ] directory=/pub /ipv6 nd set [ find default=yes ] advertise-dns=no /routing bfd configuration add disabled=no /snmp set contact=pnet@puntonetinternet.com enabled=yes location="Nodo RDM" trap-community=pnet trap-generators=interfaces trap-interfaces=bridge_vlan99 trap-version=2 /system clock set time-zone-name=America/Argentina/Mendoza /system identity set name="RDM_Nodo (RB4011iGS+)" /system logging set 1 action=ErrorLogs set 2 action=WarningLogs set 3 action=CriticalLogs add action=GrafanaLogsAlert topics=interface,info add action=GrafanaLogsAlert topics=account,info add action=DudeLogs topics=info add action=GrafanaLogsAlert topics=script,info add action=GrafanaLogsAlert topics=system,info /system ntp client set enabled=yes /system ntp client servers add address=192.168.200.1 /system resource irq rps set sfp-sfpplus1 disabled=no /system routerboard settings set auto-upgrade=yes /system scheduler add interval=2w1d name="Envio de backups por correo" on-event=backup_mail policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2023-04-01 start-time=04:00:00 add disabled=yes interval=4w2d name="Package upgrade" on-event="system package update install" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2019-04-17 start-time=05:05:00 add disabled=yes interval=4w2d name="Routerboard upgrade" on-event=":global Var1\r\n:global Var2\r\n:set Var1 \"\$[/system package get system version]\"\r\n:set Var2 \"\$[/system routerboard get current-firmware]\"\r\n:if (\$Var1>\$Var2) do={/system routerboard upgrade;\r\n/system reboot;\r\n}" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2019-04-17 start-time=05:10:00 add name=Reinicio-1 on-event="/system reboot" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2025-08-26 start-time=05:00:00 add disabled=yes interval=30s name=InterfaceState on-event=InterfaceState policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup add interval=10m name=Monitor_power on-event=voltmon policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2020-03-20 start-time=17:00:00 add name=Reinicio-2 on-event="/system reboot" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=2025-08-26 start-time=05:10:00 add disabled=yes interval=10m name=Monitor_power_test on-event=voltmon policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup /system script add dont-require-permissions=no name=backup_mail owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":log info \"backup beginning now\"\r\n:global backupfile ([/system identity get name] . \"-\" . [/system clock\_get time])\r\n/system backup save name=\$backupfile\r\n:log info \"backup pausing for 10s\"\r\n:delay 10s\r\n:log info \"backup being emailed\"\r\n/tool e-mail send to=puntonetinet@gmail.com subject=([/system identity get name] . \\ \" Backup\") from=\"MKT RDM Core \" file=\$backupfile \r\n:log info \"backup finished\"" add dont-require-permissions=no name=voltmon owner=marcos policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/system health\r\n:local tempSystem [:tonum ([get [find where name=temperature]]->\"value\")]\r\n:local voltSystem ([get [find where name=voltage]]->\"value\")\r\n:local tempMax 60\r\n:local voltMin 25\r\n\r\n# Check Temperature\r\n:if (\$tempSystem >= \$tempMax) do={\r\n :log error \"HIGH Temperature: \$tempSystem\\C2\\BA\\43\"\r\n /tool e-mail send to=pozziandres@gmail.com cc=emi.puntonet@gmail.com\_subject=\"HIGH Temperature: \$tempSystem\\C2\\BA\\43\"\r\n} else={\r\n :log info \"Temperature OK: \$tempSystem\\BA\\43\"\r\n}\r\n\r\n# Check Voltage\r\n:if (\$voltSystem <= \$voltMin) do={\r\n # Enviar log\r\n #:log error \"LOW Voltage: \$voltSystem V\"\r\n # Enviar mail\r\n /tool e-mail send to=pozziandres@gmail.com cc=emi.puntonet@gmail.com subject=\"LOW Voltage: \$voltSystem V - Nodo: \$nodo\"\r\n # Enviar Telegram\r\n :local URL (\"https://api.telegram.org/bot8336052960:AAF-Iekdc8EbAD3nfpxiJSj6eQgKWnsxfIU/sendMessage\?chat_id=-373797011&text=LOW Voltage: \$voltSystem V - Nodo_RDM\");\r\n /tool fetch url=\$URL keep-result=no;\r\n} else={\r\n # Enviar log\r\n :log info \"Voltage OK: \$voltSystem V\"\r\n}" /tool e-mail set from="RDM_NODO " port=465 server=mail.puntonetinternet.com tls=yes user=noc@puntonetinternet.com /tool graphing interface add interface=vlan90 /tool netwatch add comment=RDM_SurEsteAC disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_SurEsteAC - Nodo RDM -\_172.22.10.80 is DOWN\" body=\" \"" host=172.22.10.80 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_SurEsteAC\_- Nodo RDM - 172.22.10.80 is UP\" body=\" \"" add comment=RDM_OesteAC disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_OesteAC - Nodo RDM - 172.22.10.86 is DOWN\" body=\" \"" host=172.22.10.86 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_OesteAC - Nodo RDM\_- 172.22.10.86 is UP\" body=\" \"" add comment=RDM_NorEsteAC disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_NorEsteAC - Nodo RDM -\_172.22.10.64 is DOWN\" body=\" \"" host=172.22.10.64 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_NorEsteAC\_- Nodo RDM - 172.22.10.64 is UP\" body=\" \"" add comment=RDM_Este disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_Este - Nodo RDM - 172.22.10.36 is DOWN\" body=\" \"" host=172.22.10.36 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT\_RDM Core \" subject=\"RDM_Este - Nodo RDM - 172.22.10.36 is UP\" body=\" \"" add comment=RDM_NorteAC disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_NorteAC - Nodo RDM - 172.22.10.81 is DOWN\" body=\" \"" host=172.22.10.81 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_NorteAC - Nodo RDM\_- 172.22.10.81 is UP\" body=\" \"" add comment="Servicio (Laime Oscar) " disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com\_from=\"MKT RDM Core \" subject=\"Servicio (Laime Oscar) -172.22.10.17 is DOWN\" body=\" \"" host=172.22.10.17 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \"\_subject=\"Servicio (Laime Oscar) - 172.22.10.17 is UP\" body=\" \"" add comment="Sensor de Linea (TP-Link) " disabled=no down-script="/tool e-mail\_send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com,axelboliva2016@gmail.com,ignaciolucero578@gmail.com from=\"MKT RDM Core \" subject=\"CORTE DE ENERGIA EN NODO RDM\" body=\" \"" host=172.22.10.41 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com,axelboliva2016@gmail.com,ignaciolucero578@gmail.com from=\"MKT RDM Core \" subject=\"ENERGIA RESTABLECIDA EN NODO RDM\" body=\" \"" add comment=RDM_Solares_LTU disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_Solares_LTU - Nodo RDM - 172.22.10.96 is DOWN\" body=\" \"" host=172.22.10.96 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"RDM_Solares_LTU - Nodo RDM - 172.22.10.96 is UP\" body=\" \"" add comment=Ptp_Sabatini disabled=yes down-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"Ptp_Sabatini - Nodo RDM - 172.22.10.20 is DOWN\" body=\" \"" host=172.22.10.20 http-codes="" interval=3m test-script="" timeout=3m type=simple up-script="/tool e-mail send to=pozziandres@gmail.com cc=mjbenegas@gmail.com,emi.puntonet@gmail.com from=\"MKT RDM Core \" subject=\"Ptp_Sabatini - Nodo RDM - 172.22.10.20 is UP\" body=\" \""